package com.hwadee.service.impl;

import com.hwadee.mapper.KeypopulationMapper;
import com.hwadee.pojo.Keypopulation;
import com.hwadee.service.KeypopulationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KeypopulationServiceImpl implements KeypopulationService {

    @Autowired
    private KeypopulationMapper keypopulationMapper;

    @Override
    public List<Keypopulation> getAll() {
        return keypopulationMapper.getAll();
    }

    @Override
    public int add(Keypopulation keypopulation) {
        return keypopulationMapper.add(keypopulation);
    }

    @Override
    public int delete(Integer id) {
        return keypopulationMapper.delete(id);
    }

    @Override
    public int update(Keypopulation keypopulation) {
        return keypopulationMapper.update(keypopulation);
    }
}
